package com.designpatternspart2.abstractfactory;
/**
 * Author: Dwayne
 * 
 */
public class AbstractFactory
{
    public SpeciesFactory getSpeciesFactory(String type)
    {
        if ("mammal".equals(type))
        {
            return new MammalFactory();
        }
        else
        {
            return new ReptileFactory();
        }
    }
}